package com.yanqu.road.entity.activity.biaoju;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_biaoju", desc = "镖局玩家数据")
public class UserBiaoJuData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "累计刷新次数")
    private int refreshAmount;
    @FieldTypeAnnotation(desc = "保底前累计")
    private int guaranteeAmount;
    @FieldTypeAnnotation(desc = "最近一次刷新时间")
    private long lastRefreshTime;
    @FieldTypeAnnotation(desc = "赏金")
    private long money;

    public UserBiaoJuData() {
    }

    public UserBiaoJuData(int activityId, long userId) {
        this.activityId = activityId;
        this.userId = userId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getRefreshAmount() {
        return refreshAmount;
    }

    public void setRefreshAmount(int refreshAmount) {
        this.refreshAmount = refreshAmount;
        setUpdateOption();
    }

    public int getGuaranteeAmount() {
        return guaranteeAmount;
    }

    public void setGuaranteeAmount(int guaranteeAmount) {
        this.guaranteeAmount = guaranteeAmount;
        setUpdateOption();
    }

    public long getLastRefreshTime() {
        return lastRefreshTime;
    }

    public void setLastRefreshTime(long lastRefreshTime) {
        this.lastRefreshTime = lastRefreshTime;
        setUpdateOption();
    }

    public long getMoney() {
        return money;
    }

    public void setMoney(long money) {
        if (this.money != money) {
            this.money = money;
            setUpdateOption();
        }
    }
}
